// import CookieUtil from '@/utils/CookieUtil'
import Vue from 'vue'
export const clearLocalStrorage = _ => {
  uni.clearStorageSync()
}

export const getToken = _ => {
  let token = uni.getStorage('token')
  return token
}
export const setToken = token => {
  uni.setStorageSync('token', token)
}

export const getUserInfo = _ => {
  let userInfo = uni.getStorage('user_info')
}
export const setUserInfo = data => {
  if (data) {
    uni.setStorageSync('user_info', JSON.stringify(data))
  }
}